An asynchronous Java interface to MATLAB
نویسندگان
چکیده
MATLAB, an interactive environment for numerical and symbolic computation, supports a number of interfaces to foreign programming languages including Java. However, there is no appropriate support for calling back MATLAB functions from within the Java Virtual Machine integrated with MATLAB. This paper presents such an interface which is based exclusively on documented and portable mechanisms supplied by Java and MATLAB. Our approach is based on asynchronous communication between Java threads and MATLAB and follows the producer/consumer pattern. We also present performance measurements and discuss the impact of an optimization for calling MATLAB functions that return a result value back to Java.
منابع مشابه
How to Access Matlab from Java
Combining the strengths of the Java programming language and The Mathworks’ Matlab offers interesting new possibilities for application development. Java and its J2EE development environment are well established today as to provide solutions for dynamic Web services, large-scale distributed systems, and other network-centric applications. Matlab is a technical computing environment with a high-...
متن کاملTeaching Embedded Control Systems*
This paper introduces a novel approach to building virtual laboratories of embedded control systems using TrueTime and Easy Java Simulations. TrueTime is a freeware MATLAB/Simulink based tool commonly used to simulate embedded control systems. Easy Java Simulations is a popular authoring tool that facilitates the creation of pedagogical simulations. According to the proposed approach, authors u...
متن کاملAn Asynchronous API for Numerical Linear Algebra
We present a task-parallel asynchronous API for numerical linear algebra that utilizes multiple CPUs, multiple GPUs, or a combination of both. Furthermore, we present a wrapper of this interface for use in MATLAB. Our API imposes only small overheads, scales perfectly to two processor cores, and shows even better performance when utilizing computational resources on the GPU.
متن کاملInteractive Learning of Control Concepts Using Easy Java Simulations
This paper deals with the creation of interactive computer simulations that can be used as virtual laboratories in the field of control engineering education. We introduce EJS, a Java-based tool designed to help create interactive scientific simulations, which has been extended to provide support for authors in this field. Creating interactive simulations using EJS involves the following three ...
متن کاملA Contribution to Remote Control of Thermo - Optical Plant
The paper is devoted to the remote control of a thermo-optical plant that is used for experimental work at Faculty of Electrical Engineering and Information Technology STU in Bratislava. The presented approach is based on the created Java clientserver application that enables to connect the graphical user interface with the Matlab engine running on the server.
متن کامل